package com.ch.home.bean;

import java.util.Date;

/**
 * 用户反馈
 * Created by CHEN on 2019/8/24.
 * OK
 */
public class Feedback {

    private Integer id;
    private Integer userId;
    private String content;//反馈内容
    private Date time;//上传时间


    public Feedback() {

    }



    public Feedback(Integer id, Integer userId, String content, Date time) {
        this.id = id;
        this.userId = userId;
        this.content = content;
        this.time = time;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass( ) != o.getClass( )) return false;

        Feedback feedback = (Feedback) o;

        if (id != null ? !id.equals(feedback.id) : feedback.id != null) return false;
        if (userId != null ? !userId.equals(feedback.userId) : feedback.userId != null) return false;
        if (content != null ? !content.equals(feedback.content) : feedback.content != null) return false;
        return time != null ? time.equals(feedback.time) : feedback.time == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode( ) : 0;
        result = 31 * result + (userId != null ? userId.hashCode( ) : 0);
        result = 31 * result + (content != null ? content.hashCode( ) : 0);
        result = 31 * result + (time != null ? time.hashCode( ) : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Feedback{" +
                "id=" + id +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", time=" + time +
                '}';
    }
}
